package com.seawaterbt.ssm.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.seawaterbt.ssm.config.DataSource;
import com.seawaterbt.ssm.config.DataSourceEnum;
import com.seawaterbt.ssm.entity.ComplainInfo;
import com.seawaterbt.ssm.mapper.ComplainInfoMapper;
import com.seawaterbt.ssm.service.IComplainInfoService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ycc
 * @since 2019-10-28
 */
@Service
public class ComplainInfoServiceImpl extends ServiceImpl<ComplainInfoMapper, ComplainInfo> implements IComplainInfoService {
    @DataSource(DataSourceEnum.DB2)
    @Override
    public boolean saveOrUpdate(ComplainInfo entity) {
        return super.saveOrUpdate(entity);
    }
    @DataSource(DataSourceEnum.DB2)
    @Override
    public List<ComplainInfo> list(Wrapper<ComplainInfo> queryWrapper) {
        return super.list(queryWrapper);
    }
    @DataSource(DataSourceEnum.DB2)
    @Override
    public ComplainInfo getOne(Wrapper<ComplainInfo> queryWrapper) {
        return super.getOne(queryWrapper);
    }
}
